const fs=require('fs')

fs.readFile('./1.txt','utf-8',function(err,dataStr){
  //读取成功err值为null
  //读取失败err值为错误对象，dataStr的值为underfind
  console.log(err);
  console.log('-------');
  console.log(dataStr);
})